Skip to main content

atan

Type

function

Summary

Returns the arc tangent of a number in radians.

Syntax

the atan of <number>
atan(<number>)

Description

Use the atan function to find the arc tangent of a number.

The arc tangent of number is an angle whose tangent is equal to number. In other words, atan is an inverse of the tan function.

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

Parameters

NameTypeDescription

number

A positive or negative number, or an expression that evaluates to a number.

Examples

atan(0)
atan(tan(-1))
the atan of vectorMagnitude

Value

NameTypeDescription

return

The atan function returns a number between -pi/2 and pi/2.

the result

The result of the atan function is returned in radians. To get this result in degrees, use the following custom function:

    function atanInDegrees pMagnitude
return atan(pMagnitude) * 180 / pi
end atanInDegrees

constant: pi

control structure: function

function: tan

glossary: radian, custom function, return, degree, math operation

keyword: inverse

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?